import { reactive, ref } from "vue"

export const questionaire_query = reactive({
    id: "",
})

export interface QuestionaireData {
    createTime: string,
    deleted: boolean,
    evaluateContent: string,
    id: number,
    lectureId: number,
    lectureScore: number,
    teacherScore: number,
    updateTime: string,
}

interface PageData {
    page: number,
    count: number,
    pagesize: number,
}

export class QuestionaireListData {
    selectData: PageData = {
        page: 1,
        count: 0,
        pagesize: 5,
    }
    QuestionaireList: QuestionaireData[] = []
}

export const result = ref({
    lecturePercentages: {},
    lectureScore: 0,
    teacherPercentages: {},
    teacherScore: 0,
})